from rest_framework import serializers
from myapp.models import User, Pics, Cate, Goods, Comment, UserFlow


class CommentSer(serializers.ModelSerializer):
    class Meta:
        model = Comment
        fields = '__all__'


class UserSerializers(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class PicSer(serializers.ModelSerializer):
    class Meta:
        model = Pics
        fields = '__all__'


class CateSer(serializers.ModelSerializer):
    class Meta:
        model = Cate
        fields = '__all__'


class GoodsSer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'


class UserFlowSer(serializers.ModelSerializer):
    class Meta:
        model = UserFlow
        fields = '__all__'
